import request from '@/utils/request.js';

export function getCanteenPage(data={}) {
  return request({
    url: '/canteen/page',
    data
  });
}

/**
 * 根据ID查询食堂详情
 * @param {number} id 食堂ID
 * @returns {Promise} 食堂详情信息
 */
export function getCanteenById(id) {
  return request({
    url: `/canteen/${id}`,
    method: 'GET'
  });
}